package com.jy.adscm.operation.aftersales.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jy.adscm.zltx.bean.JyDrawingType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-07-03
 */
public class ShMachine implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 浆站id
     */
    private Integer pid;
    /**
     * 机器名称
     */
    private String name;
    @TableField(exist = false)
    private JyDrawingType nameName;
    /**
     * 机器型号
     */
    private String type;
     //机器编码
    private  String   macCode;

    /**
     * 出厂编号
     */
    private String factoryCode;
    /**
     * 浆站自编号
     */
    private String stationCode;
    /**
     * 启用时间
     */
    private Date startTime;
    /**
     * 停用时间
     */
    private Date endTime;
    /**
     * 首次交付人
     */
    private String firstDeliver;
    /**
     * 首次培训人
     */
    private String firstTrain;
    /**
     * 机器状态
     */
    private Integer state;

    private String   creator;
    @TableField(exist = false)
    private String   creatorName;

    private Date      createTime;

    public JyDrawingType getNameName() {
        return nameName;
    }

    public void setNameName(JyDrawingType nameName) {
        this.nameName = nameName;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getFactoryCode() {
        return factoryCode;
    }

    public void setFactoryCode(String factoryCode) {
        this.factoryCode = factoryCode;
    }

    public String getStationCode() {
        return stationCode;
    }

    public void setStationCode(String stationCode) {
        this.stationCode = stationCode;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getStartTime() {
        return startTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getEndTime() {
        return endTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getFirstDeliver() {
        return firstDeliver;
    }

    public void setFirstDeliver(String firstDeliver) {
        this.firstDeliver = firstDeliver;
    }

    public String getFirstTrain() {
        return firstTrain;
    }

    public void setFirstTrain(String firstTrain) {
        this.firstTrain = firstTrain;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getMacCode() {
        return macCode;
    }

    public void setMacCode(String macCode) {
        this.macCode = macCode;
    }

    @Override
    public String toString() {
        return "ShMachine{" +
        "id=" + id +
        ", pid=" + pid +
        ", name=" + name +
        ", type=" + type +
        ", factoryCode=" + factoryCode +
        ", stationCode=" + stationCode +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        ", firstDeliver=" + firstDeliver +
        ", firstTrain=" + firstTrain +
        ", state=" + state +
        "}";
    }
}
